package com.lsl.bridge;

import com.lsl.bridge.color.BlueColorAPI;
import com.lsl.bridge.color.RedColorAPI;
import com.lsl.bridge.shape.CircleShape;
import com.lsl.bridge.shape.RectangleShape;
import com.lsl.bridge.shape.Shape;


/**
 * @author Zed
 * @description
 * @date 2022/11/28 21:25
 */
public class ShapeClient {
    public static void main(String[] args) {
        //创建一个圆形 给圆形蓝色的颜料
        Shape shape = new CircleShape(new BlueColorAPI());
        //上色
        shape.draw();

        //创建一个长方形 给长方形红色的颜料
        Shape shape1 = new RectangleShape(new RedColorAPI());
        //上色
        shape1.draw();
    }
}
